package com.ruoyi.quality.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 实物质量分析业务对象 quality_analysis
 *
 * @author ruoyi
 * @date 2023-08-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class QualityAnalysisBo extends BaseEntity {

    /**
     * 分析id
     */
    @NotNull(message = "分析id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 部门
     */
    @NotBlank(message = "部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptAbbreviation;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 部门讲评
     */
    @NotNull(message = "部门讲评不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer deptCommentary;

    /**
     * 班组讲评
     */
    @NotNull(message = "班组讲评不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer groupCommentary;

    /**
     * 月份
     */
    @NotNull(message = "月份不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date analysisMonth;

    /**
     * 工艺通报数
     */
    private Integer technologyReportNumber;

    /**
     * 工艺问题数
     */
    private Integer technologyDefectNumber;

    /**
     * 工艺罚款金额
     */
    private Integer technologyDefectFine;

    /**
     * 文明通报数
     */
    private Integer physicalReportNumber;

    /**
     * 文明问题数
     */
    private Integer physicalDefectNumber;

    /**
     * 文明罚款金额
     */
    private Integer physicalDefectFine;

    /**
     * 录入问题总数
     */
    private Integer defectTotal;

    /**
     * 横向排查清单
     */
    private Integer listNumber;

    /**
     * 横向排查问题数
     */
    private Integer listDefect;

    /**
     * 分析时间
     */
    @NotNull(message = "分析时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date analysisDate;


}
